package cn.itsource.easypoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelTarget("dept")  //给当前类取一个别名
public class EasyDept {
    private Long id;
    //部门名
    @Excel(name = "部门名_employee,名字_dept")
    private String name;
    //部门地址
    @Excel(name = "部门地址_employee,地址_dept")
    private String address;
}

